package com.ler.yrmall.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ler.yrmall.coupon.entity.CouponEntity;
import com.ler.yrmall.coupon.vo.CouponVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Leron
 */
public interface CouponMapper extends BaseMapper<CouponEntity> {

    List<CouponEntity> spuCoupon(@Param("spuId") Long spuId);

    IPage<CouponVO> find(@Param("page") Page<CouponEntity> page);
}
